home *** CD-ROM | disk | FTP | other *** search
/ Aminet 39 / Aminet 39 (2000)(Schatztruhe)[!][Oct 2000].iso / Aminet / gfx / misc / Splitmpeg.lha / Splitmpeg / src / errmsg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-22  |  2.1 KB  |  63 lines

  1. /*
  2.  * Copyright (c) 1994 Michael Simmons.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software and its
  6.  * documentation for any purpose, without fee, and without written agreement is
  7.  * hereby granted, provided that the above copyright notice and the following
  8.  * two paragraphs appear in all copies of this software.
  9.  *
  10.  * IN NO EVENT SHALL MICHAEL SIMMONS BE LIABLE TO ANY PARTY FOR
  11.  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
  12.  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF MICHAEL SIMMONS
  13.  * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14.  *
  15.  * THE MICHAEL SIMMONS SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16.  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17.  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18.  * ON AN "AS IS" BASIS, AND MICHAEL SIMMONS HAS NO OBLIGATION TO
  19.  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20.  *
  21.  * I can be contacted via
  22.  * Email: michael@ecel.uwa.edu.au
  23.  * Post: P.O. Box 506, NEDLANDS WA 6009, AUSTRALIA
  24.  *
  25.  * Amigaversion by Tobias Seiler in 1997
  26.  * Email: tabs@blader.com
  27.  */
  28.  
  29. /* 1st Level Errors */
  30. #define ERR_MASK1    0xf000
  31. #define ERR_PARSE_PACK   0x1000
  32.  
  33. /* 2nd Level Errors */
  34. #define ERR_MASK2    0x0f00
  35. #define ERR_PARSE_PACK_HDR  0x0100
  36. #define ERR_PARSE_SYSTEM_HDR 0x0200
  37. #define ERR_PARSE_PACKET  0x0300
  38. #define ERR_PROCESS_PACKET  0x0400
  39. #define ERR_DIFF_SYSTEM_HDR  0x0500
  40.  
  41. /* 3rd Level Errors */
  42. #define ERR_MASK3    0x00ff
  43. #define NO_ERROR    0x0000
  44. #define ERR_READ_BITSTREAM      0x0002
  45. #define ERR_UNEXPECTED_EOF   0x0003
  46. #define ERR_NO_BIT_STREAM   0x0004
  47. #define ERR_INVALID_MARKER  0x0005
  48. #define ERR_MISSING_SYSTEM_HDR 0x0007
  49. #define ERR_OPEN_ESTREAM  0x0008
  50. #define ERR_NO_PACKET_BUFFER    0x0009
  51. #define ERR_WRITE_ESTREAM  0x000a
  52. #define ERR_MISSING_END_CODE 0x000b
  53. #define ERR_NOT_SYSTEM_LAYER 0x000c
  54. #define ERR_OPEN_BSTREAM  0x000d
  55. #define ERR_MALLOC    0x000e
  56. #define ERR_INVALID_BITS  0x000f
  57. #define ERR_INVALID_STREAM_NUM 0x0010
  58.  
  59. #define OK  0
  60. #define BUF_UNDERFLOW 1
  61. #define FALSE 0
  62. #define TRUE  1
  63.